$OpenBSD: patch-common_platform_cpp,v 1.3 2016/04/20 18:38:41 robert Exp $
--- common/platform.cpp.orig	Wed Apr 20 13:13:54 2016
+++ common/platform.cpp	Wed Apr 20 19:54:13 2016
@@ -525,7 +525,7 @@ bool force_buffers_to_disk(const int fd)
 
 void my_readahead(const int fd)
 {
-#ifndef WIN32
+#if !defined(WIN32) && !defined(__OpenBSD__)
 	struct stat st;
 
 	if (fstat(fd, &st) == 0)
@@ -535,7 +535,7 @@ void my_readahead(const int fd)
 
 void give_filesize_hint(const int fd, const off_t len)
 {
-#ifndef WIN32
+#if !defined(WIN32) && !defined(__OpenBSD__)
 	// this helps preventing filesystem fragmentation as the
 	// kernel can now look for the best disk allocation
 	// pattern as it knows how much date is going to be
